<?php
//Last Artikel
$pageDetail = $page->getMainPage();
$strLastArtikel = "";
for($i = 0; $i < count($pageDetail); $i++){
	$strLastArtikel .="<li><a href=\"pagedetail.php?pid=".$pageDetail[$i][0]."\">".$pageDetail[$i][2]."</a></li>";
}
$smarty->assign('lastArtikel',$strLastArtikel);

//Category
$pageTitle = $page->getPageGroup();
$strCat = "";					
for($i = 0; $i < count($pageTitle); $i++) {
	$strCat .= "<li><a href=\"category.php?cid=".$pageTitle[$i][0]."\">
	".$pageTitle[$i][1]."(".$page->getPageNumsRow($pageTitle[$i][0]).")</a></li>";
}		
$smarty->assign('category',$strCat);

//Iseng
$strIseng = "<li><a href=\"http://www.brainbench.com/xml/bb/transcript/public/viewtranscript.xml?pid=7941579\" target=\"_blank\"><img border=\"0\" src=\"../img_collections/java2fundamentals.gif\" alt=\"Java Sertificate\" /></a></li>";
$smarty->assign('iseng',$strIseng);

//RSS
$strRss ="<li><a href=\"http://mamat.amikom.ac.id/t_1/rss.php\" target=\"_blank\">MamatZone RSS2.0</a></li>";
$smarty->assign('rss',$strRss);

//Link
$strLink = "";
$link = new Link();
$linkTitle = $link->getLinkTitle();
for($i = 0; $i < count($linkTitle); $i++) {
									
	$strLink .="<h3>".$linkTitle[$i][1]."</h3>";
	$strLink .="	<ul>";
	$detailLink = $link->getLink($linkTitle[$i][0]);
	for($j = 0; $j < count($detailLink); $j++) {
				
		$strLink .="<li><a href=\"".$detailLink[$j][1]."\" title=\"".$detailLink[$j][2]."\" target=\"_blank\">".$detailLink[$j][0]."</a></li>";
	}
	$detailLink = null;
	$strLink .="	</ul>";
}
$smarty->assign('link',$strLink);
?>